
from launch import LaunchDescription,LaunchService
from launch_ros.actions import Node

# import launch
# import launch.actions
# import launch.substitutions
# import launch_ros.actions


def main():
    """Run demo nodes via launch."""
    ld = LaunchDescription([
        Node(
            package='bs_complex', 
            executable='complex_publisher', 
            output='screen',
            name='complex_publisher'
        )
    ])

    # ls = LaunchService(debug=True)
    ls = LaunchService()
    ls.include_launch_description(ld)
    return ls.run()


if __name__ == '__main__':
    main()